package com.yf1706.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.yf1706.bean.ExamPaper;

public interface ExamPaperJDAO extends JpaRepository<ExamPaper, Integer>{
	
	public List<ExamPaper> findByExamPaperId(int examPaperId);

	@Query("select e from ExamPaper e where e.examPaperName = ?1")
	public List<ExamPaper> findByexamPaperName(String examP);

	
	/*@Query("updata ExamPaper e set"
			+ " e.examArrangement.examArrangementId = ?2 where e.examPaperId = ?1 ")
	public void updata(int examId, int id);*/
	
	

}
